import React, { Component } from 'react';
class DemoChild2 extends Component {
    state = {  } 
    render() { 
        return (<div className='child2'>
            用户名2：{this.props.username}
            
        </div>);
    }
}
 
export default DemoChild2;